import {getRequest, postRequest} from "@/api/axios";

export const messageSearch = () => postRequest('message/getMessage',{})

export const addMessage=(message) => postRequest('message/createMessage',message);

export const updateMessage=(message) => postRequest('message/update',message);

export const deleteMessage=(id) => getRequest('message/delete',{id});

export const messageSearchByPage = (message) => postRequest('message/getMessageByPage',message)
